package com.oss.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.oss.entity.BaseEntity;
import com.oss.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_token")
public class Token extends BaseEntity implements Serializable {
    @TableId(value="tokenId")
    private String tokenId;
    // token
    private String token;
    // 用户ID
    private String userId;
    // 过期时间
    LocalDateTime expirationTime;

    String ip;
}
